package com.woniuxy.controller;

import com.woniuxy.pojo.ExpireRemind;
import com.woniuxy.service.ExpireRemindService;
import com.woniuxy.util.DataGridView;
import com.woniuxy.util.ResultDto;
import com.woniuxy.vo.ExpireRemindVo;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class ExpireRemindController extends BaseController{
    private Logger logger= LoggerFactory.getLogger(this.getClass());

    @Autowired
    private ExpireRemindService expireRemindService;

    @ApiOperation(value = "查找到期提醒",httpMethod = "GET",
            protocols = "HTTP",produces = "application/json",
            response = ResultDto.class,notes = "查找到期提醒")
    @GetMapping("/expireReminds")
    public DataGridView findExpireRemindsByPage(ExpireRemindVo expireRemindVo){
        logger.debug("事故记录："+expireRemindVo.toString());
        return expireRemindService.findByPage(expireRemindVo);
    }

}
